package com.sky.service.impl;

import com.sky.entity.DishFlavor;
import com.sky.mapper.DishFlavorMapper;
import com.sky.service.DishFlavorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class DishFlavorServiceImpl implements DishFlavorService {

    @Autowired
    private DishFlavorMapper dishFlavorMapper;
    @Override
    public List<DishFlavor> selectFlavorByDishId(Long dishId) {
        List<DishFlavor> dishFlavors = dishFlavorMapper.getByDishId(dishId);
        return dishFlavors;
    }
}
